package com.mayun.demo.tools;

/**
 * Created by ly343 on 2019/7/30.
 */

public class StringTools {
    public static boolean stringNotBlank(String str) {
        if(!"".equals(str) && 0 != str.length() &&
                null != str && !"null".equals(str)) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean stringBlank(String str) {
        if("".equals(str) || 0 == str.length() ||
                null == str || "null".equals(str)) {
            return true;
        } else {
            return false;
        }
    }
}
